<style type="text/css">
<!--
.big-banner{
  height: 120px;
  overflow: hidden;
  position: relative;
}
.big-banner .content{
  float: left;
  width: 430px;
  border-radius: 7px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -o-border-radius: 7px;
  background: rgba(90, 90, 90, 0.3);
  padding: 10px;
  margin: 20px 0px 0px 350px;
  color:#fff;
  height: 75px;
  overflow: hidden;
}
.big-banner .content h1,
.big-banner .content h2,
.big-banner .content h3{
  margin: 5px 0px;
}
.big-banner .content h1{
  padding: 0px 0px;
  margin: 0px;
  font-size: 18px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
	overflow: hidden;
  color:#ff0;
}
.big-banner .content a{
	color:#fff;
}
.big-banner .content a:hover{
	color:#ff0;
}
.big-banner .content h2{
  font-size: 14px;
  font-weight: normal;
  margin: 3px 0px;
}
.big-banner .content h3{
  font-size: 16px;
  font-weight: normal; 
  font-style: italic;
  margin: 3px 0px;
}
.big-banner .content  span{
	line-height: 18px;
	display: block;
	text-align: justify;
	margin-top: 10px;
}
.big-banner img{
  margin: 10px;
  float: right;
  max-height: 120px;
}
.big-banner .content > div{
	height: 70px;
	overflow: hidden;
}
.big-banner .content a.button-none{
	margin-top: -20px;
	margin-right: -7px;
}
-->
</style>
<script type="text/javascript" src="/js/frontend/componentBanner.js"></script>
<script type="text/javascript">
$(function(){
	$('.slide-content').slideContent({
		width: 990,
		height: 120,
		delay: 5000,
		duration: 1000
	});
});
</script>
<div class="banner-small">
	<div class="logo" id="logo"><a href="http://<?php echo sfConfig::get('app_link')?>" target="_blank"><img src="/css/frontend/img/logo.png" title="phần mềm giáo dục" alt="phần mềm giáo dục - daivietshop.com"/></a></div>
				
	<div class="slide-content">
		<?php foreach($data['banners'] as $b):
			$os = OsEnvironments::getDataByIdFrontEnd($b[0]['os_environment_id']);
			$href = url_for2('product_detail', array('id' => $b[0]['id'], 'cate_id' => $b[0]['cate_id'], 'title' => UserStringHelper::titleToAddress($b[0]['name'])));
		?>
		<div class="big-banner">
			<div class="content">
				<div>
					<h2><?php echo $os['OsEnvironmentsI18n'][$sf_user->getCulture()]['name']?></h2>
					<a href="<?php echo $href?>" title="<?php echo $b[0]['name']?>" alt="<?php echo $b[0]['name']?>"><h1><?php echo $b[0]['name']?></h1></a>
					<h3><?php echo $b[0]['sub_name']?></h3>
					
				</div>
				<a class="button-none right" href="<?php echo $href?>" title="<?php echo $b[0]['name']?>" alt="<?php echo $b[0]['name']?>">Xem thêm</a>
			</div>
			<img src="<?php echo $b[0]['photo_url']?>"/>
		</div>
		<?php endforeach?>
	</div>
	<div style="clear: both;"></div>
</div>